

function(VectorizeJudge RES_VAR OUTPUT_VAR)
    if(${CMAKE_HOST_WIN32})
        message(STATUS "Conducting SSE/AVX tests in windows OS...")
        
    elseif(${CMAKE_HOST_UNIX})
        message(STATUS "Conducting SSE/AVX tests in linux OS...")
        execute_process(COMMAND cat /proc/cpuinfo | grep -i -E 'sse|avx'
                        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
                        RESULT_VARIABLE RES_VAR
                        OUTPUT_VARIABLE OUTPUT_VAR)
        ##regex split original string to lists of strings.
        include(${CMAKE_SOURCE_DIR}/cmake/Util.cmake)
        string_split_by_space(OUTPUT_VAR OUTPUT_LIST)
    elseif(${CMAKE_HOST_APPLE})
        message(STATUS "Apple OS (MACOS) support will coming soon...")
    endif(${CMAKE_HOST_WIN32})
    
endfunction(VectorizeJudge)
